package com.punai.standard.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.standard.domain.StaLinkFeature;
import com.punai.standard.mapper.StaLinkFeatureMapper;
import com.punai.standard.service.IStaLinkFbFeatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分包特征关联Service业务层处理
 *
 * @author zxw
 * @date 2022-12-13
 */
@Service
public class StaLinkFbFeatureServiceImpl extends ServiceImpl<StaLinkFeatureMapper, StaLinkFeature> implements IStaLinkFbFeatureService
{
    @Autowired
    private StaLinkFeatureMapper staLinkFbFeatureMapper;

    /**
     * 查询分包特征关联
     *
     * @param id 分包特征关联主键
     * @return 分包特征关联
     */
    @Override
    public StaLinkFeature selectStaLinkFbFeatureById(String id)
    {
        return staLinkFbFeatureMapper.selectStaLinkFbFeatureById(id);
    }

    /**
     * 查询分包特征关联列表
     *
     * @param staLinkFbFeature 分包特征关联
     * @return 分包特征关联
     */
    @Override
    public List<StaLinkFeature> selectStaLinkFbFeatureList(StaLinkFeature staLinkFbFeature)
    {
        return staLinkFbFeatureMapper.selectStaLinkFbFeatureList(staLinkFbFeature);
    }

    /**
     * 新增分包特征关联
     *
     * @param staLinkFbFeature 分包特征关联
     * @return 结果
     */
    @Override
    public int insertStaLinkFbFeature(StaLinkFeature staLinkFbFeature)
    {
            return staLinkFbFeatureMapper.insert(staLinkFbFeature);
    }

    /**
     * 修改分包特征关联
     *
     * @param staLinkFbFeature 分包特征关联
     * @return 结果
     */
    @Override
    public int updateStaLinkFbFeature(StaLinkFeature staLinkFbFeature)
    {
        return staLinkFbFeatureMapper.updateById(staLinkFbFeature);
    }

    /**
     * 批量删除分包特征关联
     *
     * @param ids 需要删除的分包特征关联主键
     * @return 结果
     */
    @Override
    public int deleteStaLinkFbFeatureByIds(String[] ids)
    {
        return staLinkFbFeatureMapper.deleteStaLinkFbFeatureByIds(ids);
    }

    /**
     * 删除分包特征关联信息
     *
     * @param id 分包特征关联主键
     * @return 结果
     */
    @Override
    public int deleteStaLinkFbFeatureById(String id)
    {
        return staLinkFbFeatureMapper.deleteStaLinkFbFeatureById(id);
    }
}
